/* RESET */

* {
    margin: 0;
    padding: 0;
    border-width: 0;
    font-family: inherit;
    font-size: inherit;
}

/* GENERAL */

body {
    font-family: Calibri, 'Trebuchet MS', Arial, sans-serif;
    font-size: 16px;
    color: #FCF8BC;
    background-color: #8FBE00;
    background: -moz-radial-gradient(#AEE239, #8FBE00);  
    background-image: -webkit-gradient(radial,center center,10,center center,480,from(#AEE239),to(#8FBE00));
}

h1 {
    margin-top: 30px;
    text-align: center;
    color: #F8CA00;
    font-size: 72px;
    font-family: Arial;
    text-shadow: 2px -2px 0 #00569e, -2px 2px 0 #00569e, -2px -2px 0 #00569e, 2px 2px 0 #00569e, 4px 4px 0 #00569e, 0 0 500px #fff;
}

h2 {
    margin-bottom: 5px;
    font-size: 18px;
    font-family: Georgia;
    line-height: 22px;
    color: #F8CA00;
}

p {
    margin-bottom: 5px;
}

/* CORE */

#chargement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eee;
    background-color: rgba(238, 238, 238, 0.5);
    z-index: 9999;
}

    #chargement div {
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -22px 0 0 -86px;
        width: 150px;
        line-height: 22px;
        text-align: center;
        padding: 10px;
        border: 1px #666 solid;
        background-color: #2B2825;
        font-size: 18px;
        font-family: Georgia;
        border-radius: 5px;
    }

#notifications {
    position: fixed;
    bottom: 0;
    right: 15px;
}

    #notifications div {
        display: none;
        margin-bottom: 15px;
        padding: 5px 10px;
        width: 180px;
        background-color: #ffffcb;
        color: #9b7601;
        border: 1px #fec30d solid;
        border-radius: 5px;
    }

.view {
    display: none;
}

.text {
    padding: 3px;
    border: 1px #999 solid;
    border-radius: 2px;
    line-height: 19px;
    background-color: #F2E9E1;
}

.labeled {
    color: #999;
}

/* VIEWS */

#view-login {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -43px 0 0 -166px;
    padding: 15px;
    width: 300px;
    background-color: #2B2825;
    border: 1px #666 solid;
    border-radius: 5px;
}

    #view-login .text {
        width: 292px;
        text-align: center;
    }
    
#view-parties {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -216px 0 0 -266px;
    padding: 15px;
    width: 500px;
    height: 400px;
    background-color: #2B2825;
    border: 1px #666 solid;
    border-radius: 5px;
}

    #parties-creer {
        margin-bottom: 10px;
    }
    
    #parties-nom {
        width: 492px;
    }

    #parties-liste {
        padding: 3px;
        height: 300px;
        border: 1px #999 solid;
        overflow: auto;
        border-radius: 2px;
    }
    
        #parties-liste div {
            padding: 3px 5px;
            text-align: right;
            cursor: pointer;
            border-radius: 2px;
        }
    
        #parties-liste div:nth-child(even) {
            background-color: #333;
        }
        
        #parties-liste div:hover {
            background-color: #999;
        }
                
        #parties-liste div strong {
            float: left;
        }
        
#view-partie {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -301px 0 0 -451px;
    width: 900px;
    height: 600px;
    background-color: #2B2825;
    border: 1px #666 solid;
    border-radius: 5px;
    overflow: hidden;
}

    .partie-nomjoueur {
        position: absolute;
        padding: 3px 6px;
        font-weight: bold;
        color: #F8CA00;
        cursor: pointer;
        z-index: 0;
    }
    
    .partie-tourde {
        background-color: #c00;
        border-radius: 3px;
    }

    #partie-nomjoueur0 {
        top: 125px;
        right: 550px;
    }
    
    #partie-nomjoueur1 {
        bottom: 400px;
        right: 125px;
    }
    
    #partie-nomjoueur2 {
        bottom: 125px;
        left: 550px;
    }
    
    #partie-nomjoueur3 {
        top: 400px;
        left: 125px;
    }
    
    .partie-message {
        position: absolute;
        display: none;
        padding: 5px 10px;
        color: #333;
        background-color: #fcfcfc;
        border-radius: 5px;
        z-index: 10010;
    }
    
    .partie-message .pointe {
        position: absolute;
        border: 10px transparent solid;
    }
    
    #partie-message0 .pointe, #partie-message1 .pointe {
        top: -10px;
        border-bottom-color: #fcfcfc;
        border-top-width: 0;
    }
    
    #partie-message2 .pointe, #partie-message3 .pointe {
        bottom: -10px;
        border-top-color: #fcfcfc;
        border-bottom-width: 0;
    }
    
    #partie-message0 .pointe, #partie-message3 .pointe {
        left: 10px;
    }
    
    #partie-message1 .pointe, #partie-message2 .pointe {
        right: 10px;
    }

    #partie-message0 {
        top: 165px;
        left: 315px;
    }
    
    #partie-message1 {
        bottom: 360px;
        right: 115px;
    }
    
    #partie-message2 {
        bottom: 165px;
        right: 315px;
    }
    
    #partie-message3 {
        top: 360px;
        left: 115px;
    }
    
    #partie-inputmessage {
        position: absolute;
        bottom: 0;
        left: 246px;
        width: 400px;
        z-index: 5000;
    }
    
#partie-pioche {
    top: 215px;
    left: 460px;
}

#partie-menu {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px 20px 100px 100px;
}

    #partie-menu span {
        padding: 5px 10px;
        background-color: rgba(0, 0, 0, 0.3);
        color: rgba(166, 166, 166, 0.3);
        text-shadow: 0 1px 0 rgba(100, 100, 100, 0.3);
        border-radius: 4px;
        cursor: pointer;
    }
    
    #partie-menu:hover span {
        background-color: rgba(0, 0, 0, 0.6);
        color: rgba(166, 166, 166, 0.6);
        text-shadow: 0 1px 0 rgba(100, 100, 100, 0.6);
    }

    #partie-commencerpartie {
        display: none;
    }
    
#partie-choixcouleur {
    position: absolute;
    bottom: -100px;
    left: 50%;
    margin-left: -151px;
    padding: 5px;
    width: 290px;
    border: 1px #666 solid;
    background-color: #555152;
    border-radius: 3px;
    text-align: center;
    z-index: 10000;
}

    #partie-choixcouleur strong {
        display: block;
        font-size: 22px;
    }
    
    #partie-choixcouleur span {
        display: inline-block;
        margin: 5px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        border-radius: 2px;
    }
    
    #partie-choixcouleurrouge {
        background-color: #c00;
    }
    
    #partie-choixcouleurjaune {
        background-color: #F8CA00;
    }
    
    #partie-choixcouleurvert {
        background-color: #0c0;
    }
    
    #partie-choixcouleurbleue {
        background-color: #00569e;
    }
    
#partie-regles {
    display: none;
    position: absolute;
    top: 100px;
    left: 300px;
    width: 288px;
    height: 388px;
    padding: 5px;
    color: #eee;
    border: 1px #666 solid;
    background-color: #555152;
    border-radius: 3px;
    overflow-y: auto;
    z-index: 10000;
}
    
#view-finpartie {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -76px 0 0 -151px;
    padding: 10px 10px 12px 10px;
    width: 280px;
    text-align: center;
    background-color: #2B2825;
    border: 1px #666 solid;
    border-radius: 5px;
}
    
    #view-finpartie p {
        margin-bottom: 15px;
    }

    #finpartie-retour {
        padding: 3px 6px;
        border-radius: 4px;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.6);
        color: rgba(166, 166, 166, 0.6);
        text-shadow: 0 1px 0 rgba(100, 100, 100, 0.6);
    }

/* CARTES */


.carte {
    position: absolute;
    width: 90px;
    height: 160px;
    border: 5px #fff solid;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    cursor: default;
}

    .carte span {
        position: absolute;
        color: #fff;
        text-shadow: 1px 1px 0 #000;
        font-size: 22px;
    }
    
    .carte .tl {
        top: 3px;
        left: 5px;
    }
    
    .carte .br {
        bottom: 3px;
        right: 5px;
    }
    
    .carte .c {
        position: absolute;
        top: 30px;
        left: 0;
        width: 90px;
        height: 100px;
        line-height: 100px;
        font-size: 52px;
        text-align: center;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 2px 2px 0 #000;
        background-color: #fff;
        border-radius: 70px 20px/80px 20px;
    }

.rouge {
    background-color: #c00;
    color: #c00;
}

.vert {
    background-color: #0c0;
    color: #0c0;
}

.bleue {
    background-color: #00569e;
    color: #00569e;
}

.jaune {
    background-color: #F8CA00;
    color: #F8CA00;
}

.speciale {
    background-color: #000;
    color: #fff;
}

    .speciale .c {
        background-color: transparent;
    }
    
    .speciale .bg {
        position: absolute;
        top: 30px;
        left: 0;
	width: 0px;
	height: 0px;
	border-width: 50px 45px;
	border-style: solid;
	border-color: #c00 #00569e #F8CA00 #0c0;
        border-radius: 70px 20px/80px 20px;
    }

.cachee {
    background: #000;
    color: #F8CA00;
}

    .cachee .c {
        font-size: 32px;
        background-color: #c00;
    }

.clickable {
    cursor: pointer;
}